package org.jash.mvp2206.user;

import org.jash.mvp2206.entity.LoginEntity;
import org.jash.mvp2206.mvp.BaseModel;

import java.util.HashMap;

import io.reactivex.rxjava3.core.Observable;

public class LoginModel extends BaseModel implements Construct.ILoginModel {
    @Override
    public Observable<LoginEntity> login(String username, String password) {
        return server.login(new HashMap<String, String>() {{
            put("name", username);
            put("password", password);
        }});
    }
}
